<!DOCTYPE html>
<html>

<head>


    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!--360浏览器优先以webkit内核解析-->


    <title>下属签到列表</title>

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>

    </style>

</head>

<body class="white-bg x_sorll" style="padding: 3px;">
<div class="page-heade">
    <h2 class="title_color text-center">所有网点物料检查</h2>
</div>
<form action="" class="form-inline" id="form1">
    <table class="table table-bordered bud_hei">
        <tr>
            <td class="text-right">网点编号：</td>
            <td><input type="text" class="form-control" name="wdbh" value="{$wdbh}"></td>
            <td class="text-right">网点名称：</td>
            <td><input type="text" name="wdmc" value="{$wdmc}" class="form-control"></td>
            <td class="text-right">汇报人姓名：</td>
            <td><input type="text" name="hbr_xm" value="{$hbr_xm}" class="form-control"></td>
        </tr>
        <tr>
            <td class="text-right">汇报日期：</td>
            <td colspan="5">
                <div class="form-group">
                    <input type="text" id="start" class="form-control layer-date "
                           style="min-width:120px;width:120px;display: inline-block;" name="start" value="{$start}">
                </div>
                <div class="form-group">
                    -
                </div>
                <div class="form-group">
                    <input type="text" class="form-control layer-date"
                           style="min-width:120px;width:120px;display: inline-block;" id="end" name="end"
                           value="{$end}">
                </div>
            </td>
        </tr>
        <tr>
            <td class="text-center" colspan="6">
                <button class="btn-sm btn-info btn">查询</button>
                <span class="lr_5"></span>
                <button class="btn-sm btn-info btn" type="reset" id="reset">清空查询条件</button>
                <button class="btn btn-sm btn-info" type="button">导出Excel</button>
            </td>
        </tr>
    </table>
</form>
<table class="table table-striped table-bordered table-hover bud_hei text-center" style="width: 100%;">
    <tr class="info">
        <td rowspan="2">序号</td>
        <td rowspan="2">汇报网点编码</td>
        <td rowspan="2">汇报网点</td>
        <td rowspan="2">已进场条码</td>
        <td colspan="6">汇报人信息</td>
        <td rowspan="2">汇报日期</td>
        <td rowspan="2">物料名称</td>
        <td rowspan="2">物料类型</td>
        <td rowspan="2">检查结果</td>
        <td rowspan="2">检查时库存数量</td>
        <td rowspan="2">差异数量</td>
        <td rowspan="2">检查描述</td>
        <td rowspan="2">照片</td>
        <td rowspan="2">检查时间</td>
        <td rowspan="2">定位地址</td>
        <td rowspan="2">网点地址</td>
        <td rowspan="2">距离偏差</td>
        <td rowspan="2">偏差异常</td>
        <td colspan="5">汇报网点所属情况</td>
    </tr>
    <tr class="info">
        <td>性质</td>
        <td>所属经销商</td>
        <td>姓名</td>
        <td>部门</td>
        <td>岗位</td>
        <td>手机号</td>
        <td>所属营销分区</td>
        <td>所属营销省份</td>
        <td>所属营销城市</td>
        <td>所属经销商</td>
        <td>所属系统</td>
    </tr>
    {volist name="data" id="row" key="k"}
    <tr>
        <td>{$k+((request()->get('page')?request()->get('page'):1)-1)*10}</td>
        <td>{$row.hbwdbm}</td>
        <td>{$row.hbwd}</td>
        <td>{$row.yjctm}</td>
        <td>{$row.hbr_xz}</td>
        <td>{$row.hbr_ssjxs}</td>
        <td>{$row.hbr_xm}</td>
        <td>{$row.hbr_bm}</td>
        <td>{$row.hbr_gw}</td>
        <td>{$row.hbr_sjh}</td>
        <td>{$row.hbrq}</td>
        <td class="text-left">{$row.wlmc}</td>
        <td>{$row.wllx}</td>
        <td class="state">{$row.jcjg}</td>
        <td>{$row.jcskcsl}</td>
        <td>{$row.cysl}</td>
        <td class="text-left">{$row.jcms}</td>
        <td>{$row.zp}</td>
        <td>{$row.jcsj}</td>
        <td class="text-left">{$row.dwdz}</td>
        <td class="text-left">{$row.wddz}</td>
        <td>{$row.jlpc}</td>
        <td class="state">{$row.pcyc}</td>
        <td>{$row.hb_ssyxfq}</td>
        <td>{$row.hb_ssyxsf}</td>
        <td>{$row.hb_ssyxcs}</td>
        <td>{$row.hb_ssjxs}</td>
        <td>{$row.hb_ssxt}</td>
    </tr>
    {/volist}

    <!--<tr>
        <td>2</td>
        <td>S00000001</td>
        <td>百佳金田店</td>
        <td>12</td>
        <td>内部职员</td>
        <td></td>
        <td>杨洋</td>
        <td>东南大区</td>
        <td>东南大区经理</td>
        <td>12312312311</td>
        <td>2018-01-21</td>
        <td class="text-left">不锈钢保温杯</td>
        <td>销售物料</td>
        <td class="state">异常</td>
        <td>8.00</td>
        <td>10.00</td>
        <td class="text-left">还剩8个</td>
        <td></td>
        <td>2018-01-27</td>
        <td class="text-left">广东省广州市番禺区南村镇满记甜品(海印又一城奥特莱斯广场)海印星玥</td>
        <td class="text-left">南村镇海印星月</td>
        <td>0.04公里</td>
        <td class="state">异常</td>
        <td>华南大区</td>
        <td>广东省</td>
        <td>广州市</td>
        <td>广州市汇佳嘉贸易有限公司</td>
        <td>广州百佳</td>
    </tr>-->
</table>
<h5 class="text-center" style="font-size: 13px;font-weight: 500">
    {$page}
</h5>
<!--   <h3 class="text-center"><img src="__STATIC__/layout/img/zwsj.png"></h3> -->

<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    $(function () {
        $('body').on('click', 'input[type=text]', function () {
            this.select()
        })
    })
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY/MM/DD',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end',
        format: 'YYYY/MM/DD',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
    $(document).ready(function () {
        var $state = $(".state");
        $state.each(function () {
            if ($(this).text() == "正常") {
                $(this).css('color', 'green')
            } else if ($(this).text() == "异常") {
                $(this).css('color', 'red')
            }
        })

        $('#reset').on('click', function () {
            $("#form1 input").each(function () {
                $(this).val('');
            });
            $("#form1 select").each(function () {
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
    })

</script>
</body>

</html>